﻿<UserControl
    x:Name="Root"
    x:Class="UWPCore.Framework.Controls.PageHeader"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:UWPCore.Framework.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    VerticalAlignment="Top"
    VerticalContentAlignment="Top"
    HorizontalAlignment="Stretch"
    HorizontalContentAlignment="Stretch"
    Background="{ThemeResource SystemControlBackgroundChromeMediumBrush}"
    Foreground="{ThemeResource SystemControlForegroundBaseHighBrush}"
    Height="48"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">

    <Grid x:Name="grid" Background="{Binding Background, ElementName=Root}">
        <Grid x:Name="titleBar">
            <ContentPresenter x:Name="content"
                              VerticalAlignment="{x:Bind VerticalContentAlignment}"
                              HorizontalAlignment="{x:Bind HorizontalContentAlignment}"
                              Margin="{x:Bind Padding}"
                              Content="{x:Bind HeaderContent}"
                              Foreground="{Binding Foreground, ElementName=Root}"/>
        </Grid>
    </Grid>
</UserControl>
